data = {'id':1,'name':'红米','`limit`':2000,'status':1,'address':'北京会展中心','start_time':'2016-08-20 00:25:42'}
# print(data.values())
# print(data.items())
# 数据格式为：
datas = {'tb1':[{'id':1,'name':'zmh'},{'id':2,'name':'lll'}],'tb2':[{'id':1,'age':'22'}]}
def init_data( datas):
    for table, data in datas.items():
        print(table,data)
        for d in data:
            print(d)
        #     self.insert(table, d)
init_data(datas)
exit()
# print(data.keys())
# for key in data:
#     data[key] = "'"+str(data[key])+"'"
#
# print(','.join(data.keys())) # 数组传字符串，并用 , 连接
import os
# print(__file__) #D:/test/demo1.py
#
# print(os.path.dirname(__file__)) #D:/test
# exit(0)
base_dir = str(os.path.dirname(os.path.dirname(__file__)))
print(base_dir)
exit()
base_dir = base_dir.replace('\\', '/')
file_path = base_dir + "/db_config.ini"














